import request from '@/utils/request'

// 查询用户发票存根列表
export function listUserinvoice(query) {
  return request({
    url: '/system/userinvoice/list',
    method: 'get',
    params: query
  })
}

// 查询用户发票存根详细
export function getUserinvoice(uuid) {
  return request({
    url: '/system/userinvoice/' + uuid,
    method: 'get'
  })
}

// 新增用户发票存根
export function addUserinvoice(data) {
  return request({
    url: '/system/userinvoice',
    method: 'post',
    data: data
  })
}

// 修改用户发票存根
export function updateUserinvoice(data) {
  return request({
    url: '/system/userinvoice',
    method: 'put',
    data: data
  })
}

// 删除用户发票存根
export function delUserinvoice(uuid) {
  return request({
    url: '/system/userinvoice/' + uuid,
    method: 'delete'
  })
}
